package com.dmz.resold.apartment.csp;

import lombok.Getter;

/**
 * @author Laptop
 */
@Getter
public class HouseBean {
    private String LSH;// 业务流水号
    private String message;// 报文流
    private String commandType;//请求类型
    private String tranCode;//对应CSP的交易码

    public void setCommandType(String commandType) {
        this.commandType = commandType;
        if (commandType.equals("10100")) {//监管子账户余额查询
            this.setTranCode("yyy1");
        } else if (commandType.equals("10001")) {//监管子账户开户
            this.setTranCode("yyy2");
        } else if (commandType.equals("10002")) {//监管子账户开户结果查询
            this.setTranCode("yyy3");
        } else if (commandType.equals("10101")) {//(监管子账户)明细查询
            this.setTranCode("yyy4");
        } else if (commandType.equals("20001")) {//(监管子账户)转账
            this.setTranCode("yyy5");
        } else if (commandType.equals("20002")) {//(监管子账户)转账结果查询
            this.setTranCode("yyy6");
        } else if (commandType.equals("30001")) {//(监管子账户)销户
            this.setTranCode("yyy7");
        } else if (commandType.equals("10200")) {//(专用账户)余额查询
            this.setTranCode("yyy8");
        } else if (commandType.equals("10201")) {//(专用账户)余额明细查询
            this.setTranCode("yyy9");
        } else if (commandType.equals("40002")) {//(专用账户)子账户列表查询
            this.setTranCode("yyy0");
        } else if (commandType.equals("30004")) {//(账户变更查询
            this.setTranCode("yy12");
        }

    }

    public void setLSH(String lsh) {
        LSH = lsh;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setTranCode(String tranCode) {
        this.tranCode = tranCode;
    }

}
